﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace GBT.Entity.GBT_Manage
{
    /// <summary>
    /// 服务请求表
    /// </summary>
    [Table("GBT_ServiceRequest")]
    public class GBT_ServiceRequest
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 服务请求部门
        /// </summary>
        public String RequestDepartmentId { get; set; }

        /// <summary>
        /// 提供服务部门
        /// </summary>
        public String DeliveryDepartmentId { get; set; }

        /// <summary>
        /// 服务请求清单
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public Decimal Amount { get; set; }

        /// <summary>
        /// 科目
        /// </summary>
        public String AccountId { get; set; }

        /// <summary>
        /// 状态,发起-0,请求部门经理审核-1,提供服务人员完工确认-2,请求服务人员评分-3
        /// </summary>
        public Int32 State { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public String Approver { get; set; }
    }
}